package com.suozq.springcloud.order.payment.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

import com.suozq.springcloud.order.payment.service.PaymentService;

@Service
public class PaymentServiceImpl implements PaymentService{
	
	@Autowired
	RestTemplate restTemplate;
	
	@Override
	public String test() {
		return restTemplate.getForObject("http://PAYMENt/test", String.class, new Object[0]);
	}
	
	public static void main(String[] args) {
		int a = Integer.MAX_VALUE;
		int b = a+1;
		System.out.println(b);
	}
}
